package com.sam;



/**
 * Created by samwang on 2018/4/7.
 */
public class Temp {

    public static void main(String[] args) {
        String str = new String("World");
        char[] ch = {'H', 'e', 'l', 'l', 'o'};
        change(str, ch);
        System.out.println(str + " and " + ch);
        System.out.println(ch);
    }
    public static void change(String str, char[] ch) {
        str = "Changed";
        ch[0] = 'C';
    }

}
